/* Firefox userChrome.css tweaks ********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/


.folder-icon,
#editBMPanel_chooseFolderMenuItem :is(.menu-icon,.menu-iconic-icon),
treechildren::-moz-tree-image(title, container),
treechildren::-moz-tree-image(title, query, hostContainer) {
 list-style-image: url("./../../image/folder-item.png")!important;
}

treechildren::-moz-tree-image(title, open) {
 list-style-image: url("./../../image/folder-item2.png")!important;
}

treechildren::-moz-tree-image(title, container, livemark) {
 list-style-image: url("./../../image/feedIcon16.png") !important;
}

#editBMPanel_folderMenuList:-moz-any([label="Bookmarks Toolbar"],[label="Lesezeichen-Symbolleiste"]) .menulist-icon,
#editBMPanel_toolbarFolderItem :is(.menu-icon,.menu-iconic-icon),
treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksToolbar),
treechildren::-moz-tree-image(container, queryFolder_toolbar_____) {
 list-style-image: url("./../../image/bookmarksToolbar.png") !important;
}

#editBMPanel_folderMenuList:-moz-any([label="Bookmarks Menu"],[label="Lesezeichen-Menü"]) .menulist-icon,
#editBMPanel_bmRootItem :is(.menu-icon,.menu-iconic-icon),
treechildren::-moz-tree-image(container, OrganizerQuery_BookmarksMenu),
treechildren::-moz-tree-image(container, queryFolder_menu________) {
 list-style-image: url("./../../image/bookmarksMenu.png") !important;
}

#editBMPanel_folderMenuList:-moz-any([label="Other Bookmarks"],[label="Weitere Lesezeichen"]) .menulist-icon,
#editBMPanel_unfiledRootItem :is(.menu-icon,.menu-iconic-icon),
treechildren::-moz-tree-image(container, OrganizerQuery_UnfiledBookmarks),
treechildren::-moz-tree-image(container, queryFolder_unfiled_____) {
 list-style-image: url("./../../image/unsortedBookmarks.png") !important;
}

treechildren::-moz-tree-image(title, query),
treechildren::-moz-tree-image(query) {
 list-style-image: url("./../../image/query.png") !important;
}

treechildren::-moz-tree-image(title, query, dayContainer) {
  list-style-image: url("./../../image/calendar.png") !important;
}

treechildren::-moz-tree-image(query, OrganizerQuery_History),
treechildren::-moz-tree-image(query, OrganizerQuery_history____v),
treechildren::-moz-tree-image(title, query, dayContainer) {
  list-style-image: url("./../../image/calendar.png") !important;
}

treechildren::-moz-tree-image(query, OrganizerQuery_allbms_____v) {
  list-style-image: url("chrome://browser/skin/bookmark.svg") !important;
}

treechildren::-moz-tree-image(query, OrganizerQuery_downloads__v) {
  list-style-image: url("chrome://browser/skin/downloads/downloads.svg") !important;
}

toolbarbutton.bookmark-item[container],
.bookmark-item[container] .menu-iconic-left :is(.menu-icon,.menu-iconic-icon) {
  list-style-image: url("./../../image/folder-item.png") !important;
}

toolbarbutton.bookmark-item[container][open],
.bookmark-item[container][open] .menu-iconic-left :is(.menu-icon,.menu-iconic-icon) {
 list-style-image: url("./../../image/folder-item2.png")!important;
}

.bookmark-item[container][livemark] {
  list-style-image: url("./../../image/livemark-folder.png") !important;
}
.bookmark-item[container][livemark] .bookmark-item {
  list-style-image: url("./../../image/livemark-item.png") !important;
}
.bookmark-item[container][livemark] .bookmark-item[visited] {
  list-style-image: url("./../../image/livemark-item2.png") !important;
}

.bookmark-item[container][query],
.bookmark-item[container][query][open],
.bookmark-item[container][query] > .menu-iconic-left > :is(.menu-icon,.menu-iconic-icon),
.bookmark-item[container][query][open] > .menu-iconic-left > :is(.menu-icon,.menu-iconic-icon) {
  list-style-image: url("./../../image/query.png") !important;
}

treechildren::-moz-tree-image(title, query, tagContainer),
treechildren::-moz-tree-image(query, OrganizerQuery_tags_______v),
.bookmark-item[query][tagContainer] {
  list-style-image: url("./../../image/tag.png") !important;
}

.bookmark-item[query][dayContainer] {
  list-style-image: url("./../../image/calendar.png") !important;
}

.bookmark-item[query][hostContainer] {
  list-style-image: url("./../../image/folder-item.png") !important;
}

.bookmark-item[query][hostContainer][open] {
  list-style-image: url("./../../image/folder-item2.png") !important;
}

/* Bookmarks roots menu-items */
#subscribeToPageMenuitem:not([disabled]),
#subscribeToPageMenupopup {
  list-style-image: url("./../../image/feedIcon16.png") !important;
}

#bookmarksToolbarFolderMenu > .menu-iconic-left > :is(.menu-icon,.menu-iconic-icon),
#BMB_bookmarksToolbar > .menu-iconic-left > :is(.menu-icon,.menu-iconic-icon),
#panelMenu_bookmarksToolbar {
  list-style-image: url("./../../image/bookmarksToolbar.png") !important;
}

#menu_unsortedBookmarks > .menu-iconic-left > :is(.menu-icon,.menu-iconic-icon),
#BMB_unsortedBookmarks > .menu-iconic-left > :is(.menu-icon,.menu-iconic-icon),
#panelMenu_unsortedBookmarks {
  list-style-image: url("./../../image/unsortedBookmarks.png") !important;
}

/* Fx 139+*/
.bookmark-item {
  &[container] {
    list-style-image: url("./../../image/folder-item.png")!important;
  }
  &[hostContainer] {
    list-style-image: url("./../../image/folder-item.png")!important;
  }
}

:is(#bookmarksToolbarFolderMenu,#BMB_bookmarksToolbar,#panelMenu_bookmarksToolbar).bookmark-item {
  &[container] {
    list-style-image: url("./../../image/bookmarksToolbar.png")!important;
  }
}

:is(#menu_unsortedBookmarks,#BMB_unsortedBookmarks,#panelMenu_unsortedBookmarks).bookmark-item {
  &[container] {
    list-style-image: url("./../../image/unsortedBookmarks.png")!important;
  }
}
